package com.ruoyi.coupon.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 优惠券领取记录对象 tb_coupon_record
 * 
 * @author gzc
 * @date 2023-04-27
 */
public class TbCouponRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 客户优惠券编号 */
    private Long couponRecordId;

    /** 食客编号 */
    @Excel(name = "食客编号")
    private Long sikgaekId;

    /** 优惠券编号 */
    @Excel(name = "优惠券编号")
    private Long couponId;

    /** 使用状态 */
    @Excel(name = "使用状态")
    private Long status;

    /** 使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date usedTime;

    /** 门店ID */
    @Excel(name = "门店ID")
    private Long storeId;

    public void setCouponRecordId(Long couponRecordId) 
    {
        this.couponRecordId = couponRecordId;
    }

    public Long getCouponRecordId() 
    {
        return couponRecordId;
    }
    public void setSikgaekId(Long sikgaekId) 
    {
        this.sikgaekId = sikgaekId;
    }

    public Long getSikgaekId() 
    {
        return sikgaekId;
    }
    public void setCouponId(Long couponId) 
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setUsedTime(Date usedTime) 
    {
        this.usedTime = usedTime;
    }

    public Date getUsedTime() 
    {
        return usedTime;
    }
    public void setStoreId(Long storeId) 
    {
        this.storeId = storeId;
    }

    public Long getStoreId() 
    {
        return storeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("couponRecordId", getCouponRecordId())
            .append("sikgaekId", getSikgaekId())
            .append("couponId", getCouponId())
            .append("status", getStatus())
            .append("usedTime", getUsedTime())
            .append("createTime", getCreateTime())
            .append("storeId", getStoreId())
            .toString();
    }
}
